projects
/
project
/
bcm63xx
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c2147e2
)
bdinfo: Don't print out empty DRAM banks
author
Simon Glass
<
[email protected]
>
Sat, 6 Aug 2016 03:57:27 +0000
(21:57 -0600)
committer
Bin Meng
<
[email protected]
>
Tue, 16 Aug 2016 03:44:09 +0000
(11:44 +0800)
There is no sense in printing out DRAM banks of size 0 since this means they
are empty. Skip them.
Signed-off-by: Simon Glass <
[email protected]
>
Reviewed-by: Tom Rini <
[email protected]
>
Reviewed-by: Bin Meng <
[email protected]
>
cmd/bdinfo.c
patch
|
blob
|
history
diff --git
a/cmd/bdinfo.c
b/cmd/bdinfo.c
index e0bd15d54b0fdad49f6077ede75ceca80aa1c0b1..30bc15862d4b4c5716bc9873b1f437e6fd934182 100644
(file)
--- a/
cmd/bdinfo.c
+++ b/
cmd/bdinfo.c
@@
-98,9
+98,11
@@
static inline void print_bi_dram(const bd_t *bd)
int i;
for (i = 0; i < CONFIG_NR_DRAM_BANKS; ++i) {
- print_num("DRAM bank", i);
- print_num("-> start", bd->bi_dram[i].start);
- print_num("-> size", bd->bi_dram[i].size);
+ if (bd->bi_dram[i].size) {
+ print_num("DRAM bank", i);
+ print_num("-> start", bd->bi_dram[i].start);
+ print_num("-> size", bd->bi_dram[i].size);
+ }
}
#endif
}